﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="INSTALACIONYMANTENIMIENTOS.aspx.vb" Inherits="IMSS.SA.Formulario_web118" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 17px;
            text-align: center;
        }
        .style2
        {
            text-align: center;
        }
        .style3
        {
            height: 65px;
        }
        .style4
        {
            width: 453px;
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 100%; background-color: #006699; color: #FFFFFF;">
        <tr>
            <td class="style3" colspan="2" 
                style="background-image: url('../Styles/r3.PNG'); background-repeat: no-repeat; background-position: left">
                </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1" colspan="2">
                INSTALACIONES Y MANTENIMIENTOS PARA EL DIA DE HOY</td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                DIGITE EL NUMERO DE LA FECHA QUE DESEA CONSULTAR</td>
            <td style="text-align: center">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td style="text-align: center">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                <asp:Button ID="Button1" runat="server" Text="CONSULTAR" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:IMSS.SAConnectionString30 %>" 
                    
                    SelectCommand="SELECT * FROM [v_instalacion_mantenimiento] WHERE ([Fecha] = @Fecha)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="TextBox1" DbType="Date" Name="Fecha" 
                            PropertyName="Text" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
                    <AlternatingItemTemplate>
                        <tr style="background-color: #FFFFFF;color: #284775;">
                            <td>
                                <asp:Label ID="Id_instalacionLabel" runat="server" 
                                    Text='<%# Eval("Id_instalacion") %>' />
                            </td>
                            <td>
                                <asp:Label ID="NombreLabel" runat="server" Text='<%# Eval("Nombre") %>' />
                            </td>
                            <td>
                                <asp:Label ID="DireccionLabel" runat="server" Text='<%# Eval("Direccion") %>' />
                            </td>
                            <td>
                                <asp:Label ID="TelefonoLabel" runat="server" Text='<%# Eval("Telefono") %>' />
                            </td>
                            <td>
                                <asp:Label ID="TipoLabel" runat="server" Text='<%# Eval("Tipo") %>' />
                            </td>
                            <td>
                                <asp:Label ID="FechaLabel" runat="server" Text='<%# Eval("Fecha") %>' />
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <EditItemTemplate>
                        <tr style="background-color: #999999;">
                            <td>
                                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                    Text="Actualizar" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                    Text="Cancelar" />
                            </td>
                            <td>
                                <asp:TextBox ID="Id_instalacionTextBox" runat="server" 
                                    Text='<%# Bind("Id_instalacion") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="NombreTextBox" runat="server" Text='<%# Bind("Nombre") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="DireccionTextBox" runat="server" 
                                    Text='<%# Bind("Direccion") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="TelefonoTextBox" runat="server" 
                                    Text='<%# Bind("Telefono") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="TipoTextBox" runat="server" Text='<%# Bind("Tipo") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="FechaTextBox" runat="server" Text='<%# Bind("Fecha") %>' />
                            </td>
                        </tr>
                    </EditItemTemplate>
                    <EmptyDataTemplate>
                        <table runat="server" 
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                            <tr>
                                <td>
                                    No se han devuelto datos.</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <InsertItemTemplate>
                        <tr style="">
                            <td>
                                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                                    Text="Insertar" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                    Text="Borrar" />
                            </td>
                            <td>
                                <asp:TextBox ID="Id_instalacionTextBox" runat="server" 
                                    Text='<%# Bind("Id_instalacion") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="NombreTextBox" runat="server" Text='<%# Bind("Nombre") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="DireccionTextBox" runat="server" 
                                    Text='<%# Bind("Direccion") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="TelefonoTextBox" runat="server" 
                                    Text='<%# Bind("Telefono") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="TipoTextBox" runat="server" Text='<%# Bind("Tipo") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="FechaTextBox" runat="server" Text='<%# Bind("Fecha") %>' />
                            </td>
                        </tr>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <tr style="background-color: #E0FFFF;color: #333333;">
                            <td>
                                <asp:Label ID="Id_instalacionLabel" runat="server" 
                                    Text='<%# Eval("Id_instalacion") %>' />
                            </td>
                            <td>
                                <asp:Label ID="NombreLabel" runat="server" Text='<%# Eval("Nombre") %>' />
                            </td>
                            <td>
                                <asp:Label ID="DireccionLabel" runat="server" Text='<%# Eval("Direccion") %>' />
                            </td>
                            <td>
                                <asp:Label ID="TelefonoLabel" runat="server" Text='<%# Eval("Telefono") %>' />
                            </td>
                            <td>
                                <asp:Label ID="TipoLabel" runat="server" Text='<%# Eval("Tipo") %>' />
                            </td>
                            <td>
                                <asp:Label ID="FechaLabel" runat="server" Text='<%# Eval("Fecha") %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <LayoutTemplate>
                        <table runat="server">
                            <tr runat="server">
                                <td runat="server">
                                    <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                        style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                                        <tr runat="server" style="background-color: #E0FFFF;color: #333333;">
                                            <th runat="server">
                                                Id_instalacion</th>
                                            <th runat="server">
                                                Nombre</th>
                                            <th runat="server">
                                                Direccion</th>
                                            <th runat="server">
                                                Telefono</th>
                                            <th runat="server">
                                                Tipo</th>
                                            <th runat="server">
                                                Fecha</th>
                                        </tr>
                                        <tr ID="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr runat="server">
                                <td runat="server" 
                                    style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF">
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    <SelectedItemTemplate>
                        <tr style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                            <td>
                                <asp:Label ID="Id_instalacionLabel" runat="server" 
                                    Text='<%# Eval("Id_instalacion") %>' />
                            </td>
                            <td>
                                <asp:Label ID="NombreLabel" runat="server" Text='<%# Eval("Nombre") %>' />
                            </td>
                            <td>
                                <asp:Label ID="DireccionLabel" runat="server" Text='<%# Eval("Direccion") %>' />
                            </td>
                            <td>
                                <asp:Label ID="TelefonoLabel" runat="server" Text='<%# Eval("Telefono") %>' />
                            </td>
                            <td>
                                <asp:Label ID="TipoLabel" runat="server" Text='<%# Eval("Tipo") %>' />
                            </td>
                            <td>
                                <asp:Label ID="FechaLabel" runat="server" Text='<%# Eval("Fecha") %>' />
                            </td>
                        </tr>
                    </SelectedItemTemplate>
                </asp:ListView>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
